<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateQaecmsSeoConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('qaecms_seo_configs', function (Blueprint $table) {
            $table->tinyIncrements('id')->comment('seo设置自增id');
            $table->string('keywords')->comment('关键字')->default('qaecms');
            $table->string('picalt')->comment('图片ALT')->default('qaecms');
            $table->string('description')->comment('描述')->default('这是qaecms');
            $table->tinyInteger('nofollow')->comment('NOFOLLOW')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('qaecms_seo_configs');
    }
}
